package com.example.myapplication.adapter;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapplication.R;
import com.example.myapplication.bean.YPBean;
import com.example.myapplication.util.SpUtil;

import org.jetbrains.annotations.NotNull;

public class HomeAdapter extends BaseQuickAdapter<YPBean, BaseViewHolder> {
    public HomeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, YPBean item) {
        holder.setText(R.id.tv_title, item.getTitle());
        holder.setText(R.id.tv_describe, item.getContent());
        holder.setText(R.id.tv_price, item.getPrice());


    }
}
